package no.group.gowther.rest.vo;

import no.group.gowther.enums.OnePieceType;
import no.group.gowther.service.dto.ImageCode;
import no.group.gowther.service.dto.OnePieceListDTO;


/**
 * @author ayatsuji
 * @date 2022-04-26 22:59
 * @since
 */
public class OnePieceListVO {
    private Long id;
    private String name;
    private OnePieceType type;
    private String imageCode;
    private Integer containNum;

    public OnePieceListVO(OnePieceListDTO dto) {
        this.id = dto.getId();
        this.name = dto.getName();
        this.type = dto.getType();
        this.imageCode = dto.getImageCode().getUrlEncodeImageCode();
        this.containNum = dto.getContainNum();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OnePieceType getType() {
        return type;
    }

    public void setType(OnePieceType type) {
        this.type = type;
    }

    public String getImageCode() {
        return imageCode;
    }

    public void setImageCode(String imageCode) {
        this.imageCode = imageCode;
    }

    public Integer getContainNum() {
        return containNum;
    }

    public void setContainNum(Integer containNum) {
        this.containNum = containNum;
    }
}
